'use strict';
/**
 * @params {}
 * @bussiness {首页轮播}
 * @author JC
 * @date 2022-08-15
 * **/
const Controller = require('egg').Controller;
class Swiper extends Controller {
    async swiper() {
        try {
            const {
                ctx
            } = this;
            let result = await ctx.service.swiper.getSwiperList();
            ctx.body = {
                msg:200,
                data:result
            }
        } catch (e) {
            return new Error('error' + e.message)

        }
    }
}
module.exports = Swiper;